# 1.打开文件
with open("test2.txt",mode="r",encoding="utf-8") as f:
# 2.读取文件
    context = f.read()
    print(context)
# 3.关闭文件